package com.tedu.DbDemo.mapper;

import com.tedu.DbDemo.pojo.JtOrder;

//操作order,user表
public interface JtOrderMapper {
	//@mapperscan("com.tedu.DbDemo.mapper")
	//mybatis框架会自动为JtOrder创建代理类
	//mybatis框架为代理类创建代理对象
	//代理对象放在spring ioc容器中了
	//controller中 @autowired JtOrder jtorder
	//jtorder.select()
	//com.tedu.DbDemo.mapper.JtOrder 方法名select
	//从JtOrderMapper.xml中找到<select id=selectById>
	//找到select from jtorder,user,执行
	//mybatis框架根据xml中的resultMap把结果集转成JtOrder
	public JtOrder selectById(Integer orderId);

}
